<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Web Solutions
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2006/09/11 22:13:05 $)
// $RCSfile: index.php,v $ : $Revision: 1.9 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!file_exists(dirname(__FILE__)."/index.php"))
{
	echo "<font face='Verdana, Arial, Helvetica' size='2' color='red'>Please upload the index.php from the setup directory of package to use the upgrade system</font>";
	exit;
}

/**
* Variable declarations, Should be replaced by Build Generator
*/

// Set default directory becomes swift/
if (defined("SWIFTCUSTOMPATH"))
{
	chdir(SWIFTCUSTOMPATH);
} else {
	chdir('./../');
}

set_magic_quotes_runtime(0);
ini_set('session.use_trans_sid',false);
ini_set('session.bug_compat_42',true);

// Disable NOTICE errors
error_reporting(E_ALL & ~E_NOTICE);

require_once ("./includes/functions.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title><?php echo SWIFTPRODUCT; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE type=text/css>
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: red; TEXT-DECORATION: none
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
.gtext
{
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial;
}
.logotext
{
    FONT-SIZE: 34pt;
    FONT-FAMILY: Tahoma, Verdana, Arial;
}
fieldset {
  border:1px dotted gray;
  background: white;
}

legend {
  padding: 0.2em 0.5em;
  color:green;
  font-size:90%;
  background: white;
  text-align:right;
  FONT-SIZE: 11px;
  COLOR: #000000;
  FONT-FAMILY: Verdana, Arial
}
 
.inputbutton {
	font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #438CCA;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
}
 
.inputbuttonred {
	font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: red;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
}

.inputtext
{	BACKGROUND-COLOR: #FFFFFF;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Tahoma;
	FONT-SIZE: 12px;
	BORDER-STYLE: solid;
	BORDER-COLOR: #333333;
	BORDER-WIDTH: 1px;
	PADDING: 2px 2px 2px 2px;
	MARGIN: 0px;
}

.mediumtext
{
    FONT-SIZE: 12px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
}

.smalltext
{
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
}

.navtitle
{
    FONT-SIZE: 11px;
    COLOR: #454545;
    FONT-FAMILY: Verdana, Arial;
	VERTICAL-ALIGN: middle;
	HEIGHT: 20px;
	WIDTH: 100%;
}

.centerarea {
text-decoration: none;
margin: 0 0 0 0;
border: 1px solid #CDCDCD;
background: #FFFFFF url(contentbg.gif) no-repeat bottom left;
-moz-border-radius: 8px 8px 8px 8px;
COLOR: #61718C;
WIDTH: 500px;
PADDING: 4px;
}

.contenthr
{
	BORDER: none;
	COLOR: #FFEECF;
	BACKGROUND-COLOR: #FFEECF;
	HEIGHT: 1px;
	MARGIN: 3 1 3 1;
	PADDING: 0;
}

.navsub {
padding: 4px 4px 4px 4px;
}

body {
BACKGROUND: #F0EADE;
PADDING: 6px 6px 6px 6px;
}


#moduletitle:link {
	FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #277DC9; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: none
}
#moduletitle:visited {
	FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #277DC9; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: none
}
#moduletitle:hover {
	FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #ff7200; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: underline
}
</STYLE>
<script language="Javascript">
	// Workaround for the stupid 100% width bug in IE
	function ClearError() { return true; }
	window.onerror = ClearError;
</script>
</head>

<body bgcolor="#F0EADE" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
<center><BR /><BR />
<div class="centerarea">
<center><img src="<?=strtolower(SWIFTPRODUCT)?>big.gif" border="0"></center>
<HR class="contenthr"><BR />
<a href="setup.php" id="moduletitle">Setup</a><BR />
<a href="upgrade.php" id="moduletitle">Upgrade</a><BR />
<a href="modify.php" id="moduletitle">Modify</a><BR />
<a href="impex.php" id="moduletitle">Impex</a><BR /><BR />
<div style="VERTICAL-ALIGN: bottom">
<HR class="contenthr">
<span class="smalltext">Copyright &copy; 2001-<?=date("Y");?> HC Jsc. </span></div>
</div>
</center>
</body>
</html>